Skip to content

Use body banner images as fallback background#408

Merged
fernanDOTdo merged 6 commits into
mainfrom
body-banner-page-backgrounds
Jul 22, 2026
Merged

Use body banner images as fallback background#408
fernanDOTdo merged 6 commits into
mainfrom
body-banner-page-backgrounds

Conversation

@StoneMoney

Copy link
Copy Markdown
Member
  • New option flag UseBodyBannerImageAsBackground (default FALSE, client themes must opt-in to this behavior change)
  • Will search body-banner for img and use it as the page background IF the page-backgroundImage section exists and doesn't already have an image
  • Relocates PageBackground to run before MediaAttribution so that cloned image can be attributed

StoneMoney and others added 6 commits July 2, 2026 16:39
querySelector("img.preferred-image, img") returns the first match in
document order, not selector-list order, so a plain img preceding an
img.preferred-image would win. Split into two queries so
img.preferred-image is always preferred.
@fernanDOTdo
fernanDOTdo marked this pull request as ready for review July 22, 2026 02:29
@fernanDOTdo
fernanDOTdo merged commit 953d758 into main Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants